package devdeng.demo;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Console;
import cn.hutool.core.util.ClassUtil;
import com.gitee.hifong45.Ext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class TestController {

    @RequestMapping("/t1")
    public String t1() {
        String s = "t1: " + DateUtil.now();
        Console.log(s);
        return s;
    }

    public static void main(String[] args) {
        Console.log("gogo");
//        String pkgStr = ClassUtil.getPackage(Ext.class) + ".Ext";
//        Console.log(pkgStr);
        Package pkg = Ext.class.getPackage();
        Console.log(pkg.getImplementationTitle(), pkg.getImplementationVersion());
    }
}
